Skip to content

dts: st: u3: enable sai node for stm32u3xx #92575

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 30, 2025

Conversation

mariopaja
Copy link
Contributor

@mariopaja mariopaja commented Jul 3, 2025

Define SAI nodes for STM32U3xx series

stm32u3xx_sai

Sample: 44.1KHz, 16bit, 2CH
Board: nucleo_u385rg_q

Streaming is a bit challenging but it is to demonstrate the SAI capabilities:

stm32u3xx.MOV

@mariopaja mariopaja mentioned this pull request Jul 3, 2025
15 tasks
@mariopaja mariopaja marked this pull request as ready for review July 3, 2025 17:13
@github-actions github-actions bot added the platform: STM32 ST Micro STM32 label Jul 3, 2025
@erwango erwango added this to the v4.3.0 milestone Jul 4, 2025
@mariopaja mariopaja force-pushed the stm32u3xx_sai branch 2 times, most recently from e264224 to 5a16313 Compare July 23, 2025 13:03
erwango
erwango previously approved these changes Jul 23, 2025
Copy link
Member

@erwango erwango left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you mind adding an overlay in samples/drivers/i2s/output so it can be tested in CI?

Define SAI nodes for STM32U3xx series

Signed-off-by: Mario Paja <[email protected]>
Add nucleo_u385rg_q overlay and SAI conf
in samples/drivers/i2s/output

Signed-off-by: Mario Paja <[email protected]>
Copy link

@cfriedt cfriedt merged commit b5ab475 into zephyrproject-rtos:main Jul 30, 2025
34 checks passed
@djiatsaf-st
Copy link
Contributor

Hello @mariopaja ,

I have unexpected console output when running the I2S output test.

Command: west build -p -b nucleo_u385rg_q/stm32u385xx samples/drivers/i2s/output -T sample.drivers.i2s.output

Do you have any idea what might be causing this? Is some specific connection needed ?

console output :
)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))

For the test to pass, the console output must include the phrase "All I2S blocks written."

@mariopaja
Copy link
Contributor Author

mariopaja commented Aug 4, 2025

Hi @djiatsaf-st,

Do you have any idea what might be causing this? Is some specific connection needed ?

I was just able to do a test again on the HW

usart1 console output:
))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))

This happens because one of the usart1 gpio is used by the SAI1.

This is the reason I have used lpuart1 for the console:

*** Booting Zephyr OS build v4.2.0-537-gd5e3847c3d3c ***
All I2S blocks written

It seems like you have already found the issue and provided a solution: zephyrproject-rtos/hal_stm32#301

@djiatsaf-st
Copy link
Contributor

Hi @djiatsaf-st,

Do you have any idea what might be causing this? Is some specific connection needed ?

I was just able to do a test again on the HW

usart1 console output: ))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))

This happens because one of the usart1 gpio is used by the SAI1.

This is the reason I have used lpuart1 for the console:

*** Booting Zephyr OS build v4.2.0-537-gd5e3847c3d3c ***
All I2S blocks written

It seems like you have already found the issue and provided a solution: zephyrproject-rtos/hal_stm32#301

Thanks for your feedback.
I should have mentioned that I suggested a solution.
It seemed that even with USART1 disabled, it didn't work.

Everything's fine on my end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants